	<script>
		export default {
			globalData: {
				baseUrl: `${uni.getAccountInfoSync().miniProgram.envVersion == 'trial' || uni.getAccountInfoSync().miniProgram
			.envVersion == 'develop' ? 'https://hxapi.lnpjhx.com' : 'https://hxapi.lnpjhx.com'}`,
			baseImgUrl: `${uni.getAccountInfoSync().miniProgram.envVersion == 'trial' || uni.getAccountInfoSync().miniProgram
			.envVersion == 'develop' ? 'https://hxapi.lnpjhx.com/data/' : 'https://hxapi.lnpjhx.com/data/'}`,
			
			},
			onLaunch: function() {
				const updateManager = uni.getUpdateManager(); // 获取更新管理器对象
						updateManager.onCheckForUpdate(function(res) {
							if (res.hasUpdate) {
								updateManager.onUpdateReady(function() {
									uni.showModal({
										title: '更新提示',
										content: '新版本已经准备好，点击确定重新启动',
										showCancel: false,
										success: res => {
											if (res.confirm) {
												uni.clearStorageSync()
												updateManager.applyUpdate();
											}
										}
									})
								})
								updateManager.onUpdateFailed(function() {
									uni.showModal({
										title: '提示',
										content: '检查到有新版本，但是下载失败，请检查网络设置',
										showCancel: false
									})
								})
							}
						})
			},
			onShow: function() {
				console.log('App Show')

			},
			onHide: function() {
				console.log('App Hide')
				// uni.clearStorageSync()
			}
		}
	</script>

	<style lang="scss">
		/*每个页面公共css */
		@import '@/uni_modules/uni-scss/index.scss';
		/* #ifndef APP-NVUE */
		/* 官方ui库 */
		@import "/common/uni.css";
		/* 自定义图标库 */
		@import "/common/icon.css";
		/* 自定义css*/
		@import "/common/zcm-main.css";
		// 设置整个项目的背景色
		@import "/common/common.css";

		page {
			background-color: rgba(235, 236, 237, .3);
		}

		/* #endif */
		.example-info {
			font-size: 14px;
			color: #333;
			padding: 10px;
		}

		button {
			&::after {
				border: none !important;
			}

		}

		.uni-section-header__decoration {
			background: #FD6801 !important;
		}

		.uni-section {
			display: flex !important;
			align-items: center !important;
			width: 100% !important;
		}

		.uni-forms-item__label {
			padding: 0 12px 0 0 !important;
		}
	</style>